package com.bird.设计模式.创建型.建造者模式;

/**
 * @data 2022/2/14 9:59
 * @author: bird
 * @description: 课程真正的建造者
 */

public class CourseActualBuilder extends CourseBuilder {

    // 构建一个课程
    private Course course = new Course();


    @Override
    public void buildCourseName(String courseName) {
        course.setCourseName(courseName);
    }

    @Override
    public void buildCoursePPT(String coursePPT) {
        course.setCoursePPT(coursePPT);
    }

    @Override
    public void buildCourseVideo(String courseVideo) {
        course.setCourseVideo(courseVideo);
    }

    @Override
    public void buildCourseArticle(String courseArticle) {
        course.setCourseArticle(courseArticle);
    }

    @Override
    public void buildCourseQA(String curseQA) {
        course.setCourseQA(curseQA);
    }

    @Override
    public Course markCourse() {
        return course;
    }
}
